﻿using Domain.Entitys;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configers
{
    public class CMKConfigers : IEntityTypeConfiguration<CMK>
    {
        public void Configure(EntityTypeBuilder<CMK> builder)
        {
            builder.ToTable(nameof(CMK));
            builder.HasKey(c => c.MfkId);
            builder.Property(c => c.MajorKindId).IsRequired(false).HasMaxLength(50);
            builder.Property(c => c.MajorKindName).IsRequired(false).HasMaxLength(100);
        }
    }
}
